package com.example.library.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 胡绍杆
 * @since 2022-06-16
 */
@TableName("t_permission")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "permission_id", type = IdType.AUTO)
      private Integer permissionId;

    private String name;

    
    public Integer getPermissionId() {
        return permissionId;
    }

      public void setPermissionId(Integer permissionId) {
          this.permissionId = permissionId;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }

    @Override
    public String toString() {
        return "Permission{" +
              "permissionId=" + permissionId +
                  ", name=" + name +
              "}";
    }
}
